package Gestion_article;

import static Gestion_article.Article.CATEGORIE_FIELD_NAME;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "categorie")
public class Categorie {
public static final String CATEGORIE1_FIELD_NAME = "categorie";
public static final String PHOTO_FIELD_NAME = "image";
 @DatabaseField(id = true)
  private Integer code_categorie;
@DatabaseField
  private String libelle_categorie;
  @DatabaseField(foreign = true, columnName = CATEGORIE1_FIELD_NAME)
  private Integer code_categorie1;
  @DatabaseField(foreign = true, columnName = PHOTO_FIELD_NAME)
  private Integer code_image;

  public Categorie(Integer UnCodeCategorie, String LibelleCategorie,Integer unCodeCategorie1,Integer unCodeImage) {
  code_categorie = UnCodeCategorie;
  libelle_categorie = LibelleCategorie;
  code_categorie1=unCodeCategorie1;
  code_image=unCodeImage;
  }

  public Integer get_code_categorie() {
  return code_categorie;
  }

  public void set_code_categorie(Integer UnCodeCategorie) {
  code_categorie = UnCodeCategorie;
  }

  public String get_libelle_categorie() {
  return libelle_categorie;
  }

  public void set_libelle_categorie(String LibelleCategorie) {
  libelle_categorie = LibelleCategorie;
  }

    public Integer getCode_categorie1() {
        return code_categorie1;
    }

    public void setCode_categorie1(Integer code_categorie1) {
        this.code_categorie1 = code_categorie1;
    }

    public Integer getCode_image() {
        return code_image;
    }

    public void setCode_image(Integer code_image) {
        this.code_image = code_image;
    }

  
  
}